package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图片评论对象 picture_comment
 * 
 * @author ruoyi
 */
public class PictureComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    private Long id;

    /** 图片ID */
    @Excel(name = "图片ID")
    private Long pictureId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    /** 评论用户ID */
    @Excel(name = "评论用户ID")
    private Long commentUserId;

    /** 评论用户名称 */
    @Excel(name = "评论用户名称")
    private String commentUserName;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

        public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPictureId()
    {
        return pictureId;
    }

    public void setPictureId(Long pictureId)
    {
        this.pictureId = pictureId;
    }

    public Long getCommentUserId()
    {
        return commentUserId;
    }

    public void setCommentUserId(Long commentUserId)
    {
        this.commentUserId = commentUserId;
    }

    public String getCommentUserName()
    {
        return commentUserName;
    }

    public void setCommentUserName(String commentUserName)
    {
        this.commentUserName = commentUserName;
    }

    public Date getCommentTime()
    {
        return commentTime;
    }

    public void setCommentTime(Date commentTime)
    {
        this.commentTime = commentTime;
    }

    @Override
    public String toString() {
        return new StringBuilder()
            .append("PictureComment{")
            .append("commentId=").append(id)
            .append(", pictureId=").append(pictureId)
            .append(", content='").append(content).append('\'')
            .append(", commentUserId=").append(commentUserId)
            .append(", commentUserName='").append(commentUserName).append('\'')
            .append(", commentTime=").append(commentTime)
            .append('}')
            .toString();
    }
}